#! /bin/sh
. pathconfig.sh
cd build
BUSYBOX=busybox-1.29.1
if [ ! -e "$BUSYBOX" ] ; then
    wget https://busybox.net/downloads/$BUSYBOX.tar.bz2 || exit 1
    tar -xjf $BUSYBOX.tar.bz2 || exit 1
fi
cd $BUSYBOX
export LDFLAGS=""
export AR=arm-linux-androideabi-ar
export RANLIB=arm-linux-androideabi-ranlib
export SYSROOT=$PLATFORM_PREFIX/sysroot/
export CONFIG_CROSS_COMPILER_PREFIX="arm-linux-androideabi-"
export CONFIG_BUILD_LIBBUSYBOX=n
export CONFIG_ADD_SHELL=n
export CONFIG_REMOVE_SHELL=n
export CONFIG_FEATURE_SHADOWPASSWDS=n
export CONFIG_USE_BB_PWD_GRP=n
export CONFIG_USE_BB_SHADOW=n
export CONFIG_USE_BB_CRYPT=n
export CONFIG_USE_BB_CRYPT_SHA=n
export CONFIG_ADDUSER=n
export CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=n
export CONFIG_FEATURE_CHECK_NAMES=n
make android2_defconfig
make 